﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model IEnumerable<PessModel.County>

@{
    ViewBag.Title = "Index";
}

<h2>区县</h2>
<div id="operate">
@Html.ActionLink("新建", "Create")&#8195;@Html.ActionLink("返回","SystemSettings","Home")

</div>
<div class="displayConScroe">
<table>
    <tr>
        <th>
            @*@Html.DisplayNameFor(model => model.Name)*@名字
        </th>
        <th>
            @*@Html.DisplayNameFor(model => model.Code)*@代码
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Code)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.Code }) 
            @Html.ActionLink("详细", "Details", new { id=item.Code }) 
            @Html.ActionLink("删除", "Delete", new { id=item.Code })
        </td>
    </tr>
}

</table>
</div>